﻿namespace DesignPattern.com.mediator {
    public class TestMediator {
        

        public void test(){
        
            Mediator media=new MediatorImpl();
            ColleagueA ca=new ColleagueA(media);
            ColleagueB cb=new ColleagueB(media);
            
            media.setColleagueA(ca);
            media.setColleagueB(cb);
            
            
            
            ca.action();
        }
        
        
        
    }
}